package com.weixx.rabbitmq.service.direct;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Auther weixx
 * @Date 2022/2/27
 */
@Component
@RabbitListener(queues = "sms.direct.queue")
public class DirectSMSConsumer {

    @RabbitHandler
    public void reviceMessage(String message){
        System.out.println("sms Direct ----接收到了订单信息是：->"+message);
    }
}
